<template>
  <a-row :gutter="10" style="height: 100%;">
    <a-col :md="5" :sm="24" style="height: 100%;">
      <a-card :bordered="false" style="height: 100%; overflow: auto;">
        <sys-org-tree @onSelect="select" :selectedRoot="true"></sys-org-tree>
      </a-card>
    </a-col>
    <a-col :md="19" :sm="24" style="height: 100%;">
      <a-card :bordered="false" style="height: 100%;; overflow: auto;">
        <address-list-right v-model="currentOrgCode"/>
      </a-card>
    </a-col>
  </a-row>
</template>

<script>

  import AddressListRight from './modules/AddressListRight'
  import SysOrgTree from '../../components/ych/ych-org/SysOrgTree'

  export default {
    name: 'AddressList',
    components: { SysOrgTree, AddressListRight },
    data() {
      return {
        description: '通讯录页面',
        currentOrgCode: ''
      }
    },
    methods: {
      select(deptId, orgCode){
        this.currentOrgCode = orgCode;
      }
    }
  }
</script>
<style lang="less" scoped>
</style>
